Linux Shell Bash with special meaning exit code purpose descriptionThe exit command exits the current shell and can terminate the current script execution in a shell script.Common parametersFormat: Exit nExit. Set the exit code to N. (cause the
Now I've written a Hello World program to take a look at it:
Filename:main.c
#include
int main (void)
{
printf ("Hello wolrd!\n");
return (-);
}
Compile execution: gcc main.c &&/a.out
Now let's take a look at the return
What are the differences between exit (0), exit (1), and exit (-1? When the process ends, the return value to the system is different. If your process is user, run echo $? You can see that the return value of your process is the value you set in the
Write a Hello World: Filename:main.c#include int Main (void) {printf ("Hello wolrd!\n"); Return (-1); } Compile execution: gcc main.c &&./a.out Now let's see what is the return value of the previous execution in the current shell, which is "1"?
Exit (0): Run the program normally and exit the program;Exit (1): Abnormal operation results in exiting the program;Return (): Returns a function that, if in the main function, exits the function and returns a value.Detailed said: 1. Return
Address: http://www.slac.stanford.edu/BFROOT/www/Computing/Environment/Tools/Batch/exitcode.html
----------------------------------------------------
Job crashes and exit Codes
This webpage is a collection of information about job crashes
In a password-protected Web application, it is not just a matter of calling the HttpSession invalidate () method to properly handle the user exit process. Now most browsers have back and forward buttons that allow the user to step back or forward to
js| Solution | Problem in a password-protected Web application, the proper handling of the user exit process is not just a call to the HttpSession invalidate () method. Now most browsers have back and forward buttons that allow the user to step back
Address: http://blog.sina.com.cn/s/blog_4850a7880100hncm.html
Reference: http://lzjyjh.blog.sohu.com/137646727.html
-----------------------------------------------
In Unix OS, the system calls exit to terminate a process. Calls that can be
js| Solution | Problem Summary
In a password-protected Web application, it is not just a matter of calling the HttpSession invalidate () method to properly handle the user exit process. Now most browsers have back and forward buttons that allow the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.